//
//  UserModel.h
//  BMHeadLine
//
//  Created by 徐益智 on 16/1/18.
//  Copyright © 2016年 Vdianjing. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserModel : NSObject <NSCoding>

@property (nonatomic, strong)NSString *uid; // user_id
@property (nonatomic, strong)NSString *mobile;
@property (nonatomic, strong)NSString *username; // 名称
@property (nonatomic, strong)NSString *nickname; // 昵称
@property (nonatomic, strong)NSString *avatar;//头像
@property (nonatomic, strong)NSString *token;//
@property (nonatomic, strong)NSString *account_type;
@property (nonatomic, strong)NSString *hx_username;
@property (nonatomic, strong)NSString *sex;
@property (nonatomic, strong)NSString *truename;
@property (nonatomic, strong)NSString *user_type;
@property (nonatomic, strong)NSString *group_type;
@property (nonatomic, strong)NSString *password;
@property (nonatomic, strong)NSString *school_id;
@property (nonatomic, strong)NSString *account_money;

- (void)save;
+ (UserModel *)queryModel;
+ (void)deleteAllFile;
+ (void)deleteUserInfoFile;

@end

/*
 "account_type" = 0;
 avatar = "http://7xosvx.com2.z0.glb.qiniucdn.com/4EC353B5-F7F3-4779-888A-4B533D9AE734.jpg";
 birthday = "0000-00-00";
 city = 0;
 "create_time" = 1445314833;
 district = 0;
 "group_type" = 0;
 "hx_username" = ea50492183d612092301fa8bb6bbbc94;
 "last_ip" = "101.81.116.152";
 "last_time" = 1457401884;
 "name_index" = "";
 nickname = "\U5f90\U76ca\U667a";
 password = ae21e7f2cdb3030aaf5a5b257eaf2890;
 province = 0;
 random = mZuka2;
 "reg_time" = 1445314833;
 "reg_type" = 0;
 "root_id" = 488;
 sex = 1;
 token = c3c59e5f8b3e9753913f4d435b53c308;
 town = 0;
 truename = "\U5f90\U76ca\U667a";
 uid = 488;
 "user_type" = 1;
 username = 13681796760;
 */
